/*
 * Graphical.java
 *
 * Created on 18 maart 2008, 14:47
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package diagram;

import java.awt.Graphics2D;
import java.awt.Rectangle;

/**
 *
 * @author wijnand.schepens@hogent.be
 */
public abstract class Graphical {
    private int level=0;

	public abstract void paint(Graphics2D g);
	
	public abstract boolean contains(int x, int y);
	
	public abstract boolean isContainedIn(Rectangle rect);

    public abstract void setSelected(boolean value);

    /**
     * @return the level
     */
    public int getLevel() {
        return level;
    }

    /**
     * @param level the level to set
     */
    public void setLevel(int level) {
        this.level = level;
    }

    


}
